@extends('layouts.main')

@section('content')
<div class="container">
    <div class="row">
        <form action="{{ route('users.store')}}" method="POST">
            @csrf
                <div class="form-group">
                    <label for="name">Имя</label>
                    <input type="text" value="{{ old('name')}}" class="form-control" id="name" name="name" placeholder="Укажите имя">
                </div>
                <div class="form-group">
                    <label for="name">Фамилия</label>
                    <input type="text" value="{{ old('surname')}}" class="form-control" id="surname" name="surname" placeholder="Укажите Фамилию">
                </div>
                <div class="form-group">
                    <label for="name">Отчество</label>
                    <input type="text" value="{{ old('patronimic')}}" class="form-control" id="patronimic" name="patronimic" placeholder="Укажите Отчество">
                </div>
                <div class="form-group">
                    <label for="name">Email</label>
                    <input type="text" value="{{ old('email')}}" class="form-control" id="email" name="email" placeholder="Укажите Email">
                </div>
                <div class="form-group">
                    <label for="name">Password</label>
                    <input type="password" value="{{ old('password')}}" class="form-control" id="password" name="password" placeholder="Укажите Пароль">
                </div>
                <div class="form-group">
                    <label for="name">Password confirm</label>
                    <input type="password" value="{{ old('password_confirmation')}}" class="form-control" id="password_confirmation" name="password_confirmation" placeholder="Повторите пароль">
                </div>
                <div class="form-group">
                    <label for="name">Возраст</label>
                    <input type="text" value="{{ old('age')}}" class="form-control" id="age" name="age" placeholder="Укажите Возраст">
                </div>
                <div class="form-group">
                    <select name="gender" id="exampleSelectBorder" class="custom-select form-control">
                        <option disabled selected >Пол</option>
                        <option {{ old('gender') === 1 ? 'selected': ''}} value="1">Мужской</option>
                        <option {{ old('gender') === 2 ? 'selected': ''}} value="2">Женский</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="name">Адресс</label>
                    <input type="text" value="{{ old('address')}}" class="form-control" id="address" name="address" placeholder="Укажите Адресс">
                </div>
                
                <button type="submit" class="btn btn-primary">Submit</button>
            
        </form>
    </div>
</div>
@endsection